'''
Descripttion: 
Author: White
Date: 2024-12-30 11:31:50
LastEditTime: 2024-12-30 13:54:49
'''
from flask import Flask
from flask_login import LoginManager



app = Flask(__name__)


login_manager = LoginManager(app)
login_manager.login_view = 'login'


# # 配置数据库连接字符串
# app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:why19991009@127.0.1:3306/equipmentsystem?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true'
# # 将上面的 'username'、'password'、'hostname'、'port' 和 'dbname' 替换为你自己的 MySQL 数据库凭据
# # 配置其他数据库相关设置
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False



from app import routes